<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <link rel="stylesheet" href="http://cdn.staticfile.org/cesium/1.69.0/Widgets/widgets.css">
    <link rel="stylesheet" href="../css//index.css">
</head>

<body>
    <div id=cesiumContainer></div>

    <script src="http://cdn.staticfile.org/cesium/1.69.0/Cesium.js"></script>
    <script src="../libs/cpc/index.js"></script>
    <script>
        const map = new cpc.Map({
            container: "cesiumContainer",
            baseMaps: [
                "http://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer",
            ],
            terrain: {
                type: "arcgis",
                option: {
                    url:
                        "https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer",
                },
            },
            camera: {
                position: {//经纬度坐标
                    x: 119.3006147,
                    y: 26.0316619,
                    z: 2000,
                },
                angle: {
                    heading: 0,//水平角度
                    pitch: -10,//俯仰角度
                    roll: 0,//旋转角度
                },
                duration: 3,//飞行时间
                complete: () => {
                    console.log("飞行结束了");
                }
            }
        });
    </script>
</body>

</html>